package com.suse.ecommerce.serviceImp;

import com.suse.ecommerce.dao.CategoryMapper;
import com.suse.ecommerce.pojo.Category;
import com.suse.ecommerce.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImp  implements CategoryService {

    @Autowired
    CategoryMapper categoryMapper;
    /**
     * 查询分类
     */
    @Override
    public List<Category> queryCategory(Category category) {

        return categoryMapper.queryCategory(category);
    }
}
